package StudyCode.summary.zipfile;

import java.io.DataOutputStream;
import java.io.IOException;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class WriteStringToDataOutputStream {
	public static void writeString(DataOutputStream out, String string)
			throws IOException {
		out.writeInt(string.length());
		out.writeChars(string);
	}

	public static void writeInt(DataOutputStream out, int i)
			throws IOException {
		out.writeInt(i);
	}
}
